import axios from '@/utils/request';

/**
 * 获取所有用户数据
 */
 export async function GetAllUser() {
    const res = await axios.get('/User/GetAllModels');
    if (res.data.code === 200) {
        return res.data.data;
    }
    return Promise.reject(new Error(res.data.msg));
  }